Class ZipButton

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.AbstractButton
                                   |
                                   +----com.sun.java.swing.JButton
                                           |
                                           +----ZipButton

public class ZipButton
extends JButton
This class specialize JButton to change the look

Version:
1.0
Author:
Frank Moisant - Patrick Titiano
See Also:
AllActionListener

Variable Index

 o enabled

Constructor Index

 o ZipButton(String, String)
Constructor of ZipButton

Method Index

 o isEnabled()
Return the state of the button
 o setButtonEnabled(boolean)
Enable the button

Variables

 o enabled
 private boolean enabled

Constructors

 o ZipButton
 public ZipButton(String action,
                  String iconFileName)
Constructor of ZipButton

Parameters:
action - the action perform by the button, to setCommandAction
iconFileName - specify the file name of the icon to display in the button

Methods

 o isEnabled
 public boolean isEnabled()
Return the state of the button

Returns:
true if enabled
Overrides:
isEnabled in class Component
 o setButtonEnabled
 public void setButtonEnabled(boolean flag)
Enable the button

Parameters:
flag - true to enable it